﻿using System;

namespace park.System_Manager
{
    public partial class Log : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string method = Request.Params["method"];
                if (!string.IsNullOrEmpty(method) && method.Equals("LogList"))
                {

                    string beginDate = Request.Params["startDate"];
                    string endDate = Request.Params["endDate"];
                    string pageIndex = Request.Params["page"];
                    string pageSize = Request.Params["size"];

                    cn.linkit.epark.ServiceList sl = new cn.linkit.epark.ServiceList();
                    // string json = sl.LogList( beginDate,  endDate,  pageIndex,  pageSize);
                    string json = "{\"ListLog\":[{\"SN\":\"DC56765\",\"EmpCode\":\"102643456\",\"Application\":\"数据库\",\"Content\":\"备份数据库\",\"Date\":\"2012-08-20\"},{\"SN\":\"DC56765\",\"EmpCode\":\"102643456\",\"Application\":\"数据库\",\"Content\":\"备份数据库\",\"Date\":\"2012-08-20\"},{\"SN\":\"DC56765\",\"EmpCode\":\"102643456\",\"Application\":\"数据库\",\"Content\":\"备份数据库\",\"Date\":\"2012-08-20\"}],\"RowsCount\":32}";

                    Response.Write(json);
                    Response.End();
                }
            }
        }
    }
}